import axios from "../index.js";
// 应急日报保存
export const SaveEmergencyDaily = (data) => {
  return axios.request({
    url: "/emergency/emergencyDaily/save",
    method: "post",
    data: data
  });
};
// 应急日报查询
export const listPageEmergencyDaily = (data) => {
  return axios.request({
    url: "/emergency/emergencyDaily/listPage",
    method: "post",
    data: data
  });
};
// 应急日报详情
export const getByIdEmergencyDaily = (data) => {
  return axios.request({
    url: "/emergency/emergencyDaily/getById",
    method: "get",
    data: data
  });
};
// 应急日报删除多个
export const deleteByIdsEmergencyDaily = (data) => {
  return axios.request({
    url: "/emergency/emergencyDaily/deleteByIds",
    method: "post",
    data: data
  });
};
// 应急日报删除
export const deleteByIdEmergencyDaily = (data) => {
  return axios.request({
    url: "/emergency/emergencyDaily/deleteById",
    method: "post",
    data: data
  });
};
// 应急日报修改
export const UpdByIdEmergencyDaily = (data) => {
  return axios.request({
    url: "/emergency/emergencyDaily/updById",
    method: "post",
    data: data
  });
};
// 应急日报提交
export const submitEmergencyDaily = (data) => {
  return axios.request({
    url: "/emergency/emergencyDaily/submit",
    method: "post",
    data: data
  });
};
// 应急日报根据响应命令单查询
export const selectEmergencyDaily = (data) => {
  return axios.request({
    url: "/emergency/emergencyDaily/select",
    method: "get",
    data: data
  });
};
// 查询全部响应命令单
export const getListEmergencyDaily = (data) => {
  return axios.request({
    url: "/emergency/emergencyResponse/getList",
    method: "post",
    data: data
  });
};
// 时间轴应急事件
export const getFlowList = (data) => {
  return axios.request({
    url: "/emergency/warningFlow/getFlowList",
    method: "get",
    data: data
  });
};
// 获取当日日报
export const homePage = (data) => {
  return axios.request({
    url: "/emergency/emergencyDaily/homePage",
    method: "get",
    data: data
  });
};
// 获取日报名称
export const getDailyName = (data) => {
  return axios.request({
    url: "/emergency/emergencyDaily/getDailyName",
    method: "get",
    data: data
  });
};
// 获取当日日报统计
export const dailyStatistics = (data) => {
  return axios.request({
    url: "/emergency/emergencyDaily/dailyStatistics",
    method: "get",
    data: data
  });
};
// 日历
export const calendar = (data) => {
  return axios.request({
    url: "/emergency/emergencyDaily/calendar",
    method: "get",
    data: data
  });
};
// 已发布命令单
export const selectResponse = (data) => {
  return axios.request({
    url: "/emergency/emergencyResponse/selectResponse",
    method: "get",
    data: data
  });
};
// 已发布命令单
export const getDailyByMouth = (data) => {
  return axios.request({
    url: "/emergency/emergencyDaily/getDailyByMouth",
    method: "get",
    data: data
  });
};
// 天气
export const getByAreaNameAndTimeCode = (data) => {
  return axios.request({
    url: "/docking/futureDaily/getByAreaNameAndTimeCode",
    method: "get",
    data: data
  });
};
// 组织机构列表  -- 准入单位及部门
export const getOrgDepartmentLis = (data) => {
  return axios.request({
    url: "/system/organization/getOrgDepartmentList",
    method: "get",
    data: data
  });
};
